package ircbot;

/**
 * @author TheNamelssOne
 */
public class main {

    public static void main(String[] args) {
        IRCBot bot = new IRCBot();
        if (args.length > 0) {
            if (!args[0].equals("")) {
                bot = new IRCBot(args[0], 6667);
            } else if (args.length > 1 && !args[1].equals("")) {
                bot = new IRCBot(args[0], Integer.parseInt(args[1]));
            }
        }

        bot.connect();
    }
}
